<%--
 *  @Author: Kevinfan
 *  Date:    2010/12/23
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  String privilegeCode = "10340";
  String strModuleName = "ERM";
  String contextPath = request.getContextPath();
%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>

<html>
<head>
<title></title>
<PageFlow:CheckPageFlow pageName="p_zyldoctoreditheader"/>
<%@ include file="/inc/InitEdit.inc" %>
<%
  HashMap doctorinfo = (HashMap)pageContext.getAttribute("doctorinfo");
  if(doctorinfo == null) doctorinfo = new HashMap();
  Integer doctorid = (Integer)doctorinfo.get("doctorid");
  String tmpObj = "BasicInfo";
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script>
var tmpObj = document.getElementById("BasicInfo");
function page_action(thisobj,pname)
{	
  if(doctorid.value == "" && thisobj.id != "BasicInfo")
  {
      alert("<%= message.getMessageDesc("SAVE_INFO_FIRST") %>");     
	  return;
  }
  switchTags(thisobj);
  parent.down.location.href= pname + "?<%= OvalTools.randomURL() %>&doctorid=<%=JspHelper.filterNull(doctorid)%>";
}

</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="switchTags(<%=JspHelper.filterNull(tmpObj)%>)">
<custom:hidden name="doctorinfo" property="doctorid"/>
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" height="19">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="summary_top" ></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
       <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td style="PADDING-BOTTOM: 0px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px" class="black_line">
            <table border="0" cellpadding="0" cellspacing="0"
            width="100%">
              <tr>
                <td class="black_line" height="1"></td>
              </tr>
              <tbody>
              <tr>
                <td bgcolor="#ffffff" class="m_title">&nbsp;</td>
              </tr>
              <tr>
                <td background="<%=contextPath %>/images/cn/M_bg.gif"  bgcolor="#ffffff" valign="bottom">
                    <table border="0" cellpadding="0" cellspacing="0">
                      <tbody>
                      <tr><td><img height="20" src="" width="1"></td>
					  	<td id="BasicInfo" class="hand1" valign="bottom"  width="78" background="<%=contextPath %>/images/cn/mark_bg.gif" onclick="javascript:page_action(this,'DoctorEdit.jsp');"><div align="center"><%= label.getLabelName("L_BasicInfo") %></div></td>
                        <td id="JobInfo" class="hand1" valign="bottom"  width="78" background="<%=contextPath %>/images/cn/mark_bg.gif" onclick="javascript:page_action(this,'JobInfo.jsp');"><div align="center"><%= label.getLabelName("L_JobInfo") %></div></td>                 
						<td id="ProdGrading" class="hand1" valign="bottom"  width="78" background="<%=contextPath %>/images/cn/mark_bg.gif" onclick="javascript:page_action(this,'ProdInfo.jsp');"><div align="center"><%= label.getLabelName("L_ProdGrading") %></div></td>
						<td id="Kinship" class="hand1" valign="bottom"  width="78" background="<%=contextPath %>/images/cn/mark_bg.gif" onclick="javascript:page_action(this,'RelationInfo.jsp');"><div align="center"><%= label.getLabelName("L_Kinship") %></div></td>
						<td id="CureDomain" class="hand1" valign="bottom"  width="78" background="<%=contextPath %>/images/cn/mark_bg.gif" onclick="javascript:page_action(this,'ProfessionInfo.jsp');"><div align="center"><%= label.getLabelName("L_CureDomain") %></div></td>
						</tr>
                      </tbody>
                    </table>
                </td>
              </tr>
              </tbody>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
